package cn.stylefeng.guns.dao.entity;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author quspacedraon
 * @since 2024-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("goods")
@ApiModel(value = "Goods对象", description = "")
public class Goods extends BusinessBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "goods_id", type = IdType.ASSIGN_ID)
    private String goodsId;

    @ApiModelProperty(value = "商品编码")
    @TableField("commodity_code")
    private String commodityCode;

    @ApiModelProperty(value = "商品名称")
    @TableField("commodity_name")
    private String commodityName;

    @ApiModelProperty(value = "规格")
    @TableField("commodity_spec")
    private String commoditySpec;

    @ApiModelProperty(value = "商品拼音码")
    @TableField("pro_pym")
    private String proPym;

    @ApiModelProperty(value = "商品单位")
    @TableField("commodity_unit")
    private String commodityUnit;

    @ApiModelProperty(value = "厂家")
    @TableField("vender")
    private String vender;

    @ApiModelProperty(value = "入库价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "删除标记：Y-已删除，N-未删除")
    @TableField(
            value = "del_flag",
            fill = FieldFill.INSERT
    )
    @ChineseDescription("删除标记（Y-已删除，N-未删除）")
    @TableLogic(value = "N", delval = "Y")
    private String delFlag;

}
